package com.demo.swingquickticket.swing.layoutUtil;

import java.awt.*;

public class GBC extends GridBagConstraints {

    public static GBC getInstance() {
        return new GBC();
    }

    public GBC setGridXY(int gridX, int gridY) {
        this.gridx = gridX;
        this.gridy = gridY;
        return this;
    }

    public GBC setGridWH(int gridWidth, int gridHeight) {
        this.gridwidth = gridWidth;
        this.gridheight = gridHeight;
        return this;
    }

    public GBC setWeightXY(double weightX, double weightY) {
        this.weightx = weightX;
        this.weighty = weightY;
        return this;
    }

    public GBC setAnchor(int anchor) {
        this.anchor = anchor;
        return this;
    }

    public GBC setFill(int fill) {
        this.fill = fill;
        return this;
    }

    public GBC setIpadXY(int ipadX, int ipadY) {
        this.ipadx = ipadX;
        this.ipady = ipadY;
        return this;
    }

    public GBC setInsets(Insets insets) {
        this.insets = insets;
        return this;
    }
}
